import request from '@/utils/request'

// 查询计划排产列表
export function listMesProductSchedule(query) {
  return request({
    url: '/mes/MesProductSchedule/list',
    method: 'get',
    params: query
  })
}

// 查询计划排产详细
export function getMesProductSchedule(id) {
  return request({
    url: '/mes/MesProductSchedule/' + id,
    method: 'get'
  })
}

// 新增计划排产
export function addMesProductSchedule(data) {
  return request({
    url: '/mes/MesProductSchedule',
    method: 'post',
    data: data
  })
}

// 修改计划排产
export function updateMesProductSchedule(data) {
  return request({
    url: '/mes/MesProductSchedule',
    method: 'put',
    data: data
  })
}

// 删除计划排产
export function delMesProductSchedule(id) {
  return request({
    url: '/mes/MesProductSchedule/' + id,
    method: 'delete'
  })
}

// 导出计划排产
export function exportMesProductSchedule(query) {
  return request({
    url: '/mes/MesProductSchedule/export',
    method: 'get',
    params: query
  })
}

// 获取表单选项
export function getFormSelect() {
  return request({
    url: '/mes/MesProductSchedule/getFormSelect',
    method: 'get'
  })
}
